﻿using System.Web.Mvc;
using fmtx.Utility;

namespace website.Areas.Write
{
    public class WriteAreaRegistration : AreaRegistrationOrder
    {
        public override string AreaName
        {
            get
            {
                return "Write";
            }
        }

        public override void RegisterAreaOrder(AreaRegistrationContext context)
        {
            context.MapRoute(
                "Write_default",
                "Write/{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional }
            );
        }

        public override int Order
        {
            get { return 1; }
        }
    }
}
